import { MockMethod } from 'vite-plugin-mock';
import { responseResult } from '@/utils/mock';
import { DataShowCollectionApi } from '@/api/module/datashowCollectionApi';

const Mock = require('mockjs');
export default [
  {
    url: '/getNation/getNationNames',
    method: 'get',
    statusCode: 200,
    timeout: 1000,
    // @ts-ignore
    response: () => {
      const data = [
        {
          id: '1',

          name: '汉族',
        },
        {
          id: '2',

          name: '蒙古族',
        },
        {
          id: '3',

          name: '回族',
        },
        {
          id: '4',

          name: '藏族',
        },
        {
          id: '5',

          name: '维吾尔族',
        },
        {
          id: '6',

          name: '苗族',
        },
        {
          id: '7',

          name: '彝族',
        },
        {
          id: '8',

          name: '壮族',
        },
        {
          id: '9',

          name: '布依族',
        },
        {
          id: '10',

          name: '朝鲜族',
        },
        {
          id: '11',

          name: '满族',
        },
        {
          id: '12',

          name: '侗族',
        },
        {
          id: '13',

          name: '瑶族',
        },
        {
          id: '14',

          name: '白族',
        },
        {
          id: '15',

          name: '土家族',
        },
        {
          id: '16',

          name: '哈尼族',
        },
        {
          id: '17',

          name: '哈萨克族',
        },
        {
          id: '18',

          name: '傣族',
        },
        {
          id: '19',

          name: '黎族',
        },
        {
          id: '20',

          name: '傈僳族',
        },
        {
          id: '21',

          name: '佤族',
        },
        {
          id: '22',

          name: '畲族',
        },
        {
          id: '23',

          name: '高山族',
        },
        {
          id: '24',

          name: '拉祜族',
        },
        {
          id: '25',

          name: '水族',
        },
        {
          id: '26',

          name: '东乡族',
        },
        {
          id: '27',

          name: '纳西族',
        },
        {
          id: '28',

          name: '景颇族',
        },
        {
          id: '29',

          name: '柯尔克孜族',
        },
        {
          id: '30',

          name: '土族',
        },
        {
          id: '31',

          name: '达斡尔族',
        },
        {
          id: '32',

          name: '仫佬族',
        },
        {
          id: '33',

          name: '羌族',
        },
        {
          id: '34',

          name: '布朗族',
        },
        {
          id: '35',

          name: '撒拉族',
        },
        {
          id: '36',

          name: '毛难族',
        },
        {
          id: '37',

          name: '仡佬族',
        },
        {
          id: '38',

          name: '锡伯族',
        },
        {
          id: '39',

          name: '阿昌族',
        },
        {
          id: '40',

          name: '普米族',
        },
        {
          id: '41',

          name: '塔吉克族',
        },
        {
          id: '42',

          name: '怒族',
        },
        {
          id: '43',

          name: '乌孜别克族',
        },
        {
          id: '44',

          name: '俄罗斯族',
        },
        {
          id: '45',

          name: '鄂温克族',
        },
        {
          id: '46',

          name: '崩龙族',
        },
        {
          id: '47',

          name: '保安族',
        },
        {
          id: '48',

          name: '裕固族',
        },
        {
          id: '49',

          name: '京族',
        },
        {
          id: '50',

          name: '塔塔尔族',
        },
        {
          id: '51',

          name: '独龙族',
        },
        {
          id: '52',

          name: '鄂伦春族',
        },
        {
          id: '53',

          name: '赫哲族',
        },
        {
          id: '54',

          name: '门巴族',
        },
        {
          id: '55',

          name: '珞巴族',
        },
        {
          id: '56',

          name: '基诺族',
        },
      ];
      return responseResult({ data });
    },
  },
  {
    url: '/diseaseCategory/getCategory',
    method: 'get',
    statusCode: 200,
    timeout: 1000,
    // @ts-ignore
    response: () => {
      const data = [
        {
          id: 1,

          disCategory: '甲类传染病',
        },
        {
          id: 2,

          disCategory: '乙类传染病',
        },
        {
          id: 3,

          disCategory: '丙类传染病',
        },
        {
          id: 4,

          disCategory: '流行性疾病',
        },
        {
          id: 5,

          disCategory: '慢性疾病',
        },
      ];
      return responseResult({ data });
    },
  },
  {
    url: '/cbidDisease/getCbid',
    method: 'get',
    statusCode: 200,
    timeout: 1000,
    response: () => {
      const data = {
        CBIDName: [
          '新型冠状病毒肺炎',
          '布鲁氏菌病',
          '艾滋病',
          '结核病',
          '狂犬病',
          '百日咳',
          '炭疽',
          '病毒性肝炎',
          '登革热',
          '新生儿破伤风',
          '流行性乙型脑炎',
          '人感染H7N9禽流感',
          '血吸虫病',
          '钩端螺旋体病',
          '梅毒',
          '淋病',
          '猩红热',
          '流行性脑脊髓膜炎',
          '伤寒和副伤寒',
          '疟疾',
          '流行性出血热',
          '麻疹',
          '人感染高致病性禽流感',
          '脊髓灰质炎',
          '传染性非典型肺炎',
        ],
      };

      return responseResult({ data });
    },
  },
  {
    url: '/caidDisease/getCaid',
    method: 'get',
    statusCode: 200,
    timeout: 1000,
    response: () => {
      const data = { CAIDName: ['鼠疫', '霍乱'] };
      return responseResult({ data });
    },
  },
  {
    url: '/ccidDisease/getCcid',
    method: 'get',
    statusCode: 200,
    timeout: 1000,
    response: () => {
      const data = {
        CCAD: [
          '感染性腹泻病',
          '丝虫病',
          '麻风病',
          '黑热病',
          '包虫病',
          '流行性和地方性斑疹伤寒',
          '急性出血结膜炎',
          '风疹',
          '流行性腮腺炎',
          '流行性感冒',
          '手足口病',
        ],
      };
      return responseResult({ data });
    },
  },
  {
    url: '/chrdDisease/getChrdAllName',
    method: 'get',
    statusCode: 200,
    timeout: 1000,
    response: () => {
      const data = {
        CHRDName: [
          '慢性支气管炎',
          '慢性咽喉炎',
          '慢性肠炎',
          '慢性肝炎',
          '慢性肾功能衰竭',
          '高血压',
          '冠心病',
          '糖尿病',
          '高脂血症',
          '脑梗死',
          '慢性心衰',
          '风湿性心脏病',
          '风湿性关节炎',
          '肿瘤',
        ],
      };
      return responseResult({ data });
    },
  },
  {
    url: '/epiDiease/getEpiDisease',
    method: 'get',
    statusCode: 200,
    timeout: 1000,
    response: () => {
      const data = {
        EpiDiseaseNames: [
          '普通感冒、风寒感冒',
          '流感、风热感冒',
          '肠胃型感冒',
          '体虚感冒',
          '急性支气管炎',
          '支气管哮喘',
          '急性咽喉炎',
          '急性扁桃体炎',
          '急性肠胃炎',
          '口腔溃疡',
          '过敏性鼻炎',
          '肥厚性鼻炎',
          '青光眼',
          '结膜炎',
          '结膜干燥综合症',
          '急性尿道炎',
          '膀胱炎',
          '泌尿系结石',
          '急性肾小球肾炎',
          '内疮',
          '外疮',
          '肛裂',
          '痛经',
          '闭经',
          '盆腔炎',
          '更年期综合征',
          '痛风',
          '骨质增生',
          '劲椎病',
          '肩周炎',
          '骨质疏松症',
          '痤疮',
          '带状疱疹',
          '接触性皮炎',
          '神经性皮炎',
          '皮肤瘙痒症',
          '雀斑',
          '贫血',
        ],
      };
      return responseResult({ data });
    },
  },
  {
    url: '/dataCollection/getData',
    method: 'post',
    statusCode: 200,
    timeout: 1000,
    response: () => {
      return responseResult({});
    },
  },
] as MockMethod[];
